﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="AllDisbursementList.aspx.cs" Inherits="Staionery_Inventory.Presentation.Disbursement.AllDisbursementList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="row">
<asp:Label ID="lblSrfIdText" runat="server" Text="Form No. :" CssClass="col-sm-3 text-info"/>
<asp:Label ID="lblSrfIdValue" runat="server" CssClass="col-sm-9 text-left"></asp:Label>
</div>
<div class="row">
<asp:GridView runat="server"  ID="gvSrfList" 
        CssClass="col-sm-12 table table-striped table-bordered table-hover"
        AutoGenerateColumns="False" ondatabound="gvSrfList_DataBound">
    <Columns>
     <asp:TemplateField>
    <HeaderTemplate>Department</HeaderTemplate>
    <ItemTemplate>
    <asp:LinkButton ID="lbdepartmentName" runat="server" 
            Text='<%# Eval("DepartmentName") %>' onclick="lbdepartmentName_Click" />
    </ItemTemplate>
    </asp:TemplateField>
     <asp:BoundField DataField="ItemDescription" HeaderText="Item" />
    <asp:BoundField DataField="NeededQty" HeaderText="Needed Qty" />
        <asp:TemplateField>
        <HeaderTemplate>Actual Qty</HeaderTemplate>
        <ItemTemplate>
        <%--<input id="txtQtyNumber" type="number" class="form-control" runat="server" />--%>
        <asp:TextBox ID="actualQty" CssClass="form-control" runat="server" Text='<%#Eval("ActualQty") %>' required />
        <asp:RangeValidator ControlToValidate="actualQty" runat="server" ID="rvQty" MaximumValue='<%#Eval("NeededQty") %>' MinimumValue="0" ErrorMessage="Range over" Type="Integer"/>
        </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
</div>
</asp:Content>
